package com.design.pattern.command.cmd;

import com.design.pattern.command.executor.Executor;

public abstract class AbstractCmd implements Cmd {
    private final Executor executor;

    public AbstractCmd(Executor executor) {
        this.executor = executor;
    }

    @Override
    public void exec() {
        executor.exec(this);
    }
}
